// 导入http请求模块
import {http} from '@/utils/http'
// 导入类型声明文件
import type {GoodsResult} from '@/types/goods'

export const getGoodsAPI =(data:{id:string})=>{
  return http<GoodsResult>({
    url:"/goods",
    method:"GET",
    data
  })
}
